package sicnu.cs.ich.api.domain.form;

import lombok.*;
import sicnu.cs.ich.api.domain.entity.Activities;
import sicnu.cs.ich.api.domain.entity.ActivityTimeline;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 黎琦
 * @date 2021/12/22 15:59
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityForm implements Serializable {
    @NotNull(message = "活动对象不能为空")
    @Valid
    private Activities activities;
    @NotNull(message = "活动阶段不能为空")
    @Valid
    private List<ActivityTimeline> stages;
}
